import {createApp} from "vue"
import App from "@/App.vue"
import router from "@/router/index"
import store from "@/store/index"

import "font-awesome/css/font-awesome.min.css"

import ElementPlus from "element-plus"
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

import "./pageLifeTest";

function render() {
  return createApp(App)
    .use(router)
    .use(store)
    .use(ElementPlus, {locale: zhCn})
    .mount('#app');
}

// if (window.__POWERED_BY_WUJIE__) {
//   let instance;
//   window.__WUJIE_MOUNT = () => {
//     instance = render();
//   };
//   window.__WUJIE_UNMOUNT = () => {
//     instance.unmount && instance.unmount();
//   };
// } else {
//   render();
// }

render();